﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 销售商品表
    /// </summary>
   public class EM_Wares
    {
        public EM_Wares()
        {
            Id = Guid.NewGuid();
        }
        /// <summary>
        /// 商品编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(25)]
        [Required]
        public string? Name { get; set; }
        /// <summary>
        /// 商品价格
        /// </summary>
        [Required]
        public int price { get; set; }
        /// <summary>
        /// 商品类别
        /// </summary>
        [Required]
        public string? Category { get; set; }
        /// <summary>
        /// 产品简介
        /// </summary>
        public string? Text { get; set; }
        /// <summary>
        /// 上市时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 销量
        /// </summary>
        public string Sale { get; set; }
    }
}
